<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreatePersonalOtherTable extends Migration{
    /**
     * 作者 柯良志
     * 屏蔽企业表
     * 添加时间 2016-10-24
     */
    public function up(){
        /** 屏蔽企业表 shieldcompanies   **/
        Schema::create('shieldcompanies', function (Blueprint $table) {
            $table->engine = 'MyISAM';
            $table->increments('id')->unsigned()->comment('自动增长主键');
            $table->integer('company_uid')->unsigned()->index('company_uid')->default(0)->comment('公司用户表id');
            $table->integer('personal_uid')->unsigned()->index('personal_uid')->default(0)->comment('个人用户表id');
            $table->integer('resume_id')->unsigned()->index('resume_id')->default(0)->comment('个人简历表id');
            $table->timestamp('addtime')->nullable()->comment('添加时间');
        });
    }

    /**
     * 作者 柯良志
     * 屏蔽企业表  Reverse the migrations.
     * 添加时间 2016-10-24
     */
    public function down(){
        Schema::drop('shieldcompanies');
    }
}
